<html><head><TITLE>SGU_Sprite</TITLE></head>
<body>
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A>  class  SGU_Sprite  </H2><BLOCKQUOTE>
SGU Sprite Object for SDL 
</BLOCKQUOTE>
<hr>

<DL>
<DL>
<DT><h3>Public Methods</h3><DD><DT><A HREF="#DOC.15.2"> <IMG BORDER=0 SRC=icon1.gif></A> bool  <B>Load</B>(char *filename, SDL_PixelFormat *pxlformat) </B>
 <DD><I> This methode load a sprite (*.spr) from the disk</I>
<DT><A HREF="#DOC.15.3"> <IMG BORDER=0 SRC=icon1.gif></A> bool  <B>Display</B>(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f) </B>
 <DD><I> This methode display a sprite on a given SDL_Surface</I>
<DT><A HREF="#DOC.15.4"> <IMG BORDER=0 SRC=icon1.gif></A> bool  <B>DisplayAlpha</B>(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f, Uint8 p255alpha) </B>
 <DD><I> This methode display a sprite on a given SDL_Surface with alpha</I>
<DT><A HREF="#DOC.15.5"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetZ</B>(int f) </B>
 <DD><I> This methode give the z value for the given frame f</I>
<DT><A HREF="#DOC.15.6"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetX</B>(int f) </B>
 <DD><I> This methode give the x offset for the given frame f</I>
<DT><A HREF="#DOC.15.7"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetY</B>(int f) </B>
 <DD><I> This methode give the y offset for the given frame f</I>
<DT><A HREF="#DOC.15.8"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetW</B>(int f) </B>
 <DD><I> This methode give the width for the given frame f</I>
<DT><A HREF="#DOC.15.9"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetH</B>(int f) </B>
 <DD><I> This methode give the height for the given frame f</I>
<DT><A HREF="#DOC.15.10"> <IMG BORDER=0 SRC=icon1.gif></A> int  <B>GetNbFrames</B>(void) </B>
 <DD><I> This methode give the number of frame</I>
<DT><A HREF="#DOC.15.1"> <IMG BORDER=0 SRC=icon1.gif></A> bool  <B>SGU_Sprite::Load</B>(char *filename, SDL_PixelFormat *pxlformat) </B>
 <DD><I>
We load a sprite from filename</I>
</DL></DL>
<A NAME="DOC.DOCU">
<hr>
 <h2> Documentation </h2>
<BLOCKQUOTE>
SGU Sprite Object for SDL 

</BLOCKQUOTE>
<DL>

<A NAME="Load">
<A NAME ="DOC.15.2">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  Load(char *filename, SDL_PixelFormat *pxlformat)</B></TT>
<DD> This methode load a sprite (*.spr) from the disk
<DL></DL><P>
<A NAME="Display">
<A NAME ="DOC.15.3">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  Display(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f)</B></TT>
<DD> This methode display a sprite on a given SDL_Surface
<DL></DL><P>
<A NAME="DisplayAlpha">
<A NAME ="DOC.15.4">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  DisplayAlpha(SDL_Surface *dest, Sint16 x, Sint16 y, Uint32 f, Uint8 p255alpha)</B></TT>
<DD> This methode display a sprite on a given SDL_Surface with alpha
<DL></DL><P>
<A NAME="GetZ">
<A NAME ="DOC.15.5">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetZ(int f)</B></TT>
<DD> This methode give the z value for the given frame f
<DL></DL><P>
<A NAME="GetX">
<A NAME ="DOC.15.6">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetX(int f)</B></TT>
<DD> This methode give the x offset for the given frame f
<DL></DL><P>
<A NAME="GetY">
<A NAME ="DOC.15.7">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetY(int f)</B></TT>
<DD> This methode give the y offset for the given frame f
<DL></DL><P>
<A NAME="GetW">
<A NAME ="DOC.15.8">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetW(int f)</B></TT>
<DD> This methode give the width for the given frame f
<DL></DL><P>
<A NAME="GetH">
<A NAME ="DOC.15.9">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetH(int f)</B></TT>
<DD> This methode give the height for the given frame f
<DL></DL><P>
<A NAME="GetNbFrames">
<A NAME ="DOC.15.10">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int  GetNbFrames(void)</B></TT>
<DD> This methode give the number of frame
<DL></DL><P>
<A NAME="SGU_Sprite::Load">
<A NAME ="DOC.15.1">
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool  SGU_Sprite::Load(char *filename, SDL_PixelFormat *pxlformat)</B></TT>
<DD>
We load a sprite from filename.
The sprite format is the one used with MUANG, Urbanit and MGA
<DL></DL><P></DL>
<hr>
 <DL><DT><B>This class has no child classes.</B></DL>
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I>  <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
<P Align=Center><I>this page has been generated automatically by doc++</I>
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte  Z&ouml;ckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>
</BODY>
